#include "matrixfunctions.h"
#include "vectorfunctions.h"

int main()
{
	int row, col, i, j, n=0;
	int mat[100][100];
	int x[10000];
	cout<<"Number of rows : " ;
	cin>>row;
	cout<<"Number of columns : " ;
	cin>>col;
	readmatrix(mat, row, col);
	for(i=0; i<row; i++)
		for(j=0; j<col; j++)
			if(mat[i][j]>0){
				x[n]=mat[i][j];
				n++;
			}
	printVector(x, n);
	


return 0;
}
